//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tyr_drones\fn_onload.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_counter","_name"];

if (!([player] call FUNC(checkPlayer))) then {
	lbclear 1151;
	closedialog 0;
	hint localize "STR_TYR_DRN_EQUIPUAVTERMINAL";
} else {
	lbclear 1151;
	_counter = 0;
	{
		_name = _x;
		_name = [_x,0] call mso_fnc_getDisplayName;
		if (_name == "") then { _name = _x; };
		lbAdd [1151,_name];
		lbSetData [1151,_counter,_x];
		INC(_counter);
	} foreach GVAR(DRONE_TYPES);
	lbSetCurSel [1151, 0];
};
TRACE("End");
TMFPROFILERSTOP;